package com.udf.hive.udf;

public class Test {
    public static void main(String[] args) {
//        IdNum2Address idNum2Address = new IdNum2Address();
//        IdNum2BirthDay idNum2BirthDay = new IdNum2BirthDay();
//        IdNum2Sex idNum2Sex = new IdNum2Sex();
//        System.out.println(idNum2Address.evaluate("411424198905256"));
//        System.out.println(idNum2Address.evaluate("411424198905256630"));
//        System.out.println(idNum2Address.evaluate(""));
//        System.out.println(idNum2Address.evaluate(" "));
//        System.out.println(idNum2Address.evaluate(null));
//        System.out.println(idNum2BirthDay.evaluate("411424198905256630"));
//        System.out.println(idNum2BirthDay.evaluate("411424198905256630"," "));
//        System.out.println(idNum2BirthDay.evaluate("411424890525663"));
//        System.out.println(idNum2BirthDay.evaluate("411424890525663"," "));
//        System.out.println(idNum2BirthDay.evaluate(""));
//        System.out.println(idNum2BirthDay.evaluate("  "));
//        System.out.println(idNum2BirthDay.evaluate(null));
//        System.out.println(idNum2Sex.evaluate("411424198905256630"));
//        System.out.println(idNum2Sex.evaluate("411424890525663"));
//        System.out.println(idNum2Sex.evaluate(""));
//        System.out.println(idNum2Sex.evaluate(" "));
//        System.out.println(idNum2Sex.evaluate(null));
//        Ip2City ip2City = new Ip2City();
//        Ip2Country ip2country = new Ip2Country();
//        Ip2Province ip2Province = new Ip2Province();
//        Ip2TelecomOperators ip2TelecomOperators  = new Ip2TelecomOperators();
//        System.out.println(ip2City.evaluate("27.190.14.0"));
//        System.out.println(ip2country.evaluate("27.190.14.0"));
//        System.out.println(ip2Province.evaluate("27.190.14.0"));
//        System.out.println(ip2TelecomOperators.evaluate("27.190.14.0"));


        FromTimstampMS fromTimstampMS = new FromTimstampMS();
        long currentTimeMillis = System.currentTimeMillis();
        System.out.println(currentTimeMillis);
        String evaluate = fromTimstampMS.evaluate(currentTimeMillis, null);
        System.out.println(evaluate);
        String evaluate1 = fromTimstampMS.evaluate(currentTimeMillis, "yyyy-MM-dd HH:mm:ss");
        System.out.println(evaluate1);
        String evaluate2 = fromTimstampMS.evaluate(currentTimeMillis+"","");
        System.out.println(evaluate2);

        String evaluate3 = fromTimstampMS.evaluate(currentTimeMillis);
        System.out.println(evaluate3);
    }
}
